package sk.umb.nadrz.model;

public class Axis {

	//zaciatocny a koncovy bod osi valca
	private Point u;
	private Point v;
	
	//vseboecna rovnica priamky v priestore: ax + by + cz +d = 0
	private int a;
	private int b;
	private int c;
	private int d;
	
	public Axis(Double dlzka, Double polomer, Double sklon) {
		this.u = new Point(Math.sin(sklon) * polomer, Math.cos(sklon) * polomer, polomer);
		this.v = new Point(Math.cos(sklon) * dlzka + u.getX(), Math.sin(sklon) * dlzka + u.getY(), polomer);
		calculateLineCoefficients();
	}
	
	private void calculateLineCoefficients() {
		//XXX
		// vypocitat parametricke rovnice priamky z bodov 'u' a 'v'
		// najst normalovy vektor a setnut koeficienty vseobecnej rovnice a,b,c,d
		
		this.a=0;
		this.b=0;
		this.c=0;
		this.d=0;
	}
	
	public Point getU() {
		return u;
	}
	public void setU(Point u) {
		this.u = u;
	}
	public Point getV() {
		return v;
	}
	public void setV(Point v) {
		this.v = v;
	}
	public int getA() {
		return a;
	}
	public void setA(int a) {
		this.a = a;
	}
	public int getB() {
		return b;
	}
	public void setB(int b) {
		this.b = b;
	}
	public int getC() {
		return c;
	}
	public void setC(int c) {
		this.c = c;
	}
	public int getD() {
		return d;
	}
	public void setD(int d) {
		this.d = d;
	}
	
}
